Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

esTransform.c File Reference

#include "esUtil.h"
#include <math.h>

Defines

#define PI   3.1415926535897932384626433832795f

Functions

void ESUTIL_API esScale (ESMatrix *result, GLfloat sx, GLfloat sy, GLfloat sz)
 multiply matrix specified by result with a scaling matrix and return new matrix in result

void ESUTIL_API esTranslate (ESMatrix *result, GLfloat tx, GLfloat ty, GLfloat tz)
 multiply matrix specified by result with a translation matrix and return new matrix in result

void ESUTIL_API esRotate (ESMatrix *result, GLfloat angle, GLfloat x, GLfloat y, GLfloat z)
 multiply matrix specified by result with a rotation matrix and return new matrix in result

void ESUTIL_API esFrustum (ESMatrix *result, float left, float right, float bottom, float top, float nearZ, float farZ)
void ESUTIL_API esPerspective (ESMatrix *result, float fovy, float aspect, float nearZ, float farZ)
 multiply matrix specified by result with a perspective matrix and return new matrix in result

void ESUTIL_API esOrtho (ESMatrix *result, float left, float right, float bottom, float top, float nearZ, float farZ)
 multiply matrix specified by result with a perspective matrix and return new matrix in result

void ESUTIL_API esMatrixMultiply (ESMatrix *result, ESMatrix *srcA, ESMatrix *srcB)
 perform the following operation - result matrix = srcA matrix * srcB matrix

void ESUTIL_API esMatrixLoadIdentity (ESMatrix *result)

Define Documentation

#define PI   3.1415926535897932384626433832795f
 


Function Documentation

void ESUTIL_API esFrustum ESMatrix result,
float  left,
float  right,
float  bottom,
float  top,
float  nearZ,
float  farZ
 

Parameters:
result Specifies the input matrix. new matrix is returned in result.
left,right Coordinates for the left and right vertical clipping planes
bottom,top Coordinates for the bottom and top horizontal clipping planes
nearZ,farZ Distances to the near and far depth clipping planes. Both distances must be +ve.

void ESUTIL_API esMatrixLoadIdentity ESMatrix result  ) 
 

void ESUTIL_API esMatrixMultiply ESMatrix result,
ESMatrix srcA,
ESMatrix srcB
 

perform the following operation - result matrix = srcA matrix * srcB matrix

Parameters:
result Returns multiplied matrix
srcA,srcB Input matrices to be multiplied

void ESUTIL_API esOrtho ESMatrix result,
float  left,
float  right,
float  bottom,
float  top,
float  nearZ,
float  farZ
 

multiply matrix specified by result with a perspective matrix and return new matrix in result

Parameters:
result Specifies the input matrix. new matrix is returned in result.
left,right Coordinates for the left and right vertical clipping planes
bottom,top Coordinates for the bottom and top horizontal clipping planes
nearZ,farZ Distances to the near and far depth clipping planes. These values are -ve if plane is behind the viewer

void ESUTIL_API esPerspective ESMatrix result,
float  fovy,
float  aspect,
float  nearZ,
float  farZ
 

multiply matrix specified by result with a perspective matrix and return new matrix in result

Parameters:
result Specifies the input matrix. new matrix is returned in result.
fovy Field of view y angle in degrees
aspect Aspect ratio of screen
nearZ Near plane distance
farZ Far plane distance

void ESUTIL_API esRotate ESMatrix result,
GLfloat  angle,
GLfloat  x,
GLfloat  y,
GLfloat  z
 

multiply matrix specified by result with a rotation matrix and return new matrix in result

Parameters:
result Specifies the input matrix. Rotated matrix is returned in result.
angle Specifies the angle of rotation, in degrees.
x,y,z Specify the x, y and z coordinates of a vector, respectively

void ESUTIL_API esScale ESMatrix result,
GLfloat  sx,
GLfloat  sy,
GLfloat  sz
 

multiply matrix specified by result with a scaling matrix and return new matrix in result

Parameters:
result Specifies the input matrix. Scaled matrix is returned in result.
sx,sy,sz Scale factors along the x, y and z axes respectively

void ESUTIL_API esTranslate ESMatrix result,
GLfloat  tx,
GLfloat  ty,
GLfloat  tz
 

multiply matrix specified by result with a translation matrix and return new matrix in result

Parameters:
result Specifies the input matrix. Translated matrix is returned in result.
tx,ty,tz Scale factors along the x, y and z axes respectively


Generated on Thu Jan 31 11:29:22 2008 for ES Framework by doxygen 1.3.6